package com.youbug.mall.ware_wms.service;

import com.youbug.common.vo.CommonSelectLongValVo;
import com.youbug.common.vo.CommonSelectVo;
import com.youbug.mall.ware_wms.entity.WmsPurchase;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youbug.common.vo.QueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.youbug.mall.ware_wms.vo.DistributeVo;
import com.youbug.mall.ware_wms.vo.MergeVo;
import com.youbug.mall.ware_wms.vo.PurchaseDoneVo;

import java.util.List;

/**
 * <p>
 * 采购信息 服务类
 * </p>
 *
 * @author youbug
 * @since 2024-05-05
 */
public interface IWmsPurchaseService extends IService<WmsPurchase> {

    IPage<WmsPurchase> getWmsPurchasePage(QueryVo<WmsPurchase> queryVo);

    IPage<WmsPurchase> getUnreceicedWmsPurchasePage(Long wareId);

    boolean distribute(DistributeVo vo);

    boolean mergePurchase(MergeVo vo);

    boolean receive(List<Long> ids);

    boolean done(PurchaseDoneVo vo);

    boolean checkHasDetail(Long id);

    List<CommonSelectLongValVo> getAllWareSelect();
}
